Skip to content

Conversation

Shehryar718
Copy link

Fixes #94

Description

  • Fix issue where special parameters (self/cls) were being incorrectly filtered
  • Add tests to verify context parameter works correctly with special parameters
  • Ensure schema only contains actual function parameters, not special ones

Testing

  • Added comprehensive test cases:
    • Instance methods with context
    • Class methods with context
    • Static methods with context
  • Verified special parameters (self/cls) are properly handled
  • Confirmed schema generation excludes special parameters

Related Issue

This PR addresses issue #94

Checklist

  • Tests added/updated and passing locally
  • Code follows project style guidelines
  • Documentation updated (if required)
  • Issue linked in the PR description

…meter

- Fix issue where special parameters (self/cls) were being incorrectly filtered
- Add tests to verify context parameter works correctly with special parameters
- Ensure schema only contains actual function parameters, not special ones
@seratch seratch added enhancement New feature or request feature:core labels Jun 25, 2025
@seratch
Copy link
Member

seratch commented Aug 15, 2025

If we still want to support #94 use case, having this change may be worth considering. What do you think? @rm-openai If it's not a priority, we can close both the issue and this PR.

@seratch seratch closed this Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature:core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add method_tool Functionality
2 participants